#!/bin/bash

# 确保目录存在
mkdir -p assets/icons

# 使用 rsvg-convert 将 SVG 转换为 PNG
rsvg-convert -w 1024 -h 1024 assets/icons/app_logo.svg > assets/icons/app_icon.png

# 运行 flutter_launcher_icons
flutter pub get
flutter pub run flutter_launcher_icons 